<template>
  <!-- 外层容器-start -->
  <el-container>

    <!-- 左边侧边栏 -->
    <el-aside :width="menuStore.menuWidth" class="transition-all">
      <AdminMenu></AdminMenu>
    </el-aside>

    <!-- 主容器-start -->
    <el-container>
      <!-- 顶栏容器 -->
      <el-header>
        <AdminHeader></AdminHeader>
      </el-header>

      <el-main>
        <!-- 标签导航栏 -->
        <AdminTagList></AdminTagList>

        <!-- 主内容（根据路由动态展示不同页面） -->
        <router-view></router-view>
      </el-main>

      <!-- 底栏容器 -->
      <el-footer>
        <AdminFooter></AdminFooter>
      </el-footer>

    </el-container>
    <!-- 主容器-end -->

  </el-container>
  <!-- 外层容器-end -->

</template>


<script setup>
import AdminFooter from "./components/AdminFooter.vue";
import AdminHeader from "./components/AdminHeader.vue";
import AdminMenu from "./components/AdminMenu.vue";
import AdminTagList from "./components/AdminTagList.vue";

import {useMenuStore} from "@/store/menu.js";
const menuStore = useMenuStore()
</script>

<style>
/* 调整header间距 */
.el-header {
  padding: 0!important;
}
</style>

